#pragma once
#include <time.h>
#include "cqueue.h"

typedef enum{
    connection_idle,
    connection_active
}connection_status_t;

typedef struct connection_s{
    int clientfd;
    d_link_node_t *node;
    connection_status_t status;
}connection_t;

connection_t *connection_create(int clientfd);

void connection_destory(connection_t *connection);
